﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.Lists.WorkflowsListData.Views
{
	public class WorkflowStepsView : BaseView
	{
		public WorkflowStepsView()
		{
			this.ContentTypeId = ContentTypes.ContentTypes.WorkflowContentType.ID;
			this.DefaultViewForContentType = true;
			this.XslLink = Settings.Default.List_Workflows_View_WorkflowSteps_XslLink;

			this.Query = Settings.Default.List_Workflows_View_WorkflowSteps_Query;
		}

		protected override string GetTitleResourceKey()
		{
			return "List_Workflows_View_WorkflowSteps_Title";
		}

		protected override string GetPageNameResourceKey()
		{
			return "List_Workflows_View_WorkflowSteps_PageName";
		}

		public override List<ListColumn> GetViewColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
											SharePoint.CommonControls.DataObjects.SiteColumns.ContentTypeColumn,
											SiteColumns.TaskOwnerColumn,
											SiteColumns.TestTypeLookupColumn,
			                           		SiteColumns.TestResultPointsMaxColumn,
											SiteColumns.InterviewerColumn,
											SiteColumns.ResultSummaryColumn
			                           	};
			return columns;
		}
	}
}
